import service from "@/utils/request"

import LoginWork from "@/utils/LoginWork"
// 查询
export const LastIntoStorageQuery = (parms:any) => {
    return service.put<any,any>(`/bioDeptWrok/getLastInHeadQuery`,parms)
}

// 检核
export const checkActive = (slipNo:string) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/lastInHeadCheck?slipNo=${slipNo}`)
}

// 楦头入库单删除
export const deleteLstOutStore =  (slipNo:string) => {
    return LoginWork.post<any,any>(`/bioDeptWrok/lastInDelete?slipNo=${slipNo}`)
}

// 厂商查询
export const VenderQuery = () => {
    return service.post<any,any>(`/back/getBaseDetailQuery?baseType=${'LAST_VENDOR'}&itemName=${''}`)
}

// 楦头明细查询
export const LastDetailsQuery = (slipNp:string) => {
    return service.post<any,any>(`/bioDeptWrok/getLastInDetQuery?slipNo=${slipNp}`)
}

// 单独删除
export const SeparateDeletion = (slipNo:string,parms:any) => {
    return LoginWork.put<any,any>(`/bioDeptWrok/lastInDetDelete?slipNo=${slipNo}&seqNo=${parms}`)
}

export const VenderQuery1 = () => {
    return service.post<any,any>(`/back/getBaseDetailQuery?baseType=${'LAST_WAREHOUSE'}&itemName=${''}`)
}

// 新增
export const addLastIntoStorage = (parms:any) => {
  return LoginWork.put<any,any>(`/bioDeptWrok/lastInAdd`,parms)
}

// 楦头查询
export const latNoQuery = (parms:any) => {
    return LoginWork.post<any,any>(`/back/getLastTempQuery?lastNo=${parms}`)
  }